//index.js
//获取应用实例
const app = getApp()
Page({
  data: {
    sendTime: '获取验证码',
    sendColor: '#FF2823',
    snsMsgWait: 60,
    code: '123456',
    tel: '18800001100'
  },
  onLoad(options){
    this.setData(options, () => {
      this.getArticleDetail(options.newsid);
    })
  },
  /**
   * 获取文章详情
   */
  getArticleDetail(id) {
    app._post_form('/blade-api/content', {id}, (res) => {
      this.setData(res.data)
   /*   this.setData({
        content:decodeURIComponent(escape(atob(this.data.content)))
      })*/
    })
  }
})
